#include "entities/building.h"

#include "gamestate.h"
#include "luainterface.h"
#include "player.h"
#include "resourcemanager.h"

#include "entities/army.h"
#include "entities/improvement.h"

Building::Building():Entity(){
    prerequisite="none";
    replaces="none";
    scriptLocation="data\\buildings\\scripts\\";
}

void Building::Update(){
}

void Building::EndTurn(){
}

std::set<std::string> Building::GetConstructionOptionNames(){
    std::set<std::string> names;
    for(std::string name: Entity::GetConstructionOptionNames()){
        if(resourceManager->GetBuilding(name)->CanBeBuiltInsideCity()){
            names.insert(name);
        }
    }
    return names;
}

std::set<std::string> Building::GetImprovementOptionNames(){
    std::set<std::string> names;
    for(std::string name: Entity::GetConstructionOptionNames()){
        if(resourceManager->GetBuilding(name)->CanBeBuiltOutsideCity()){
            names.insert(name);
        }
    }
    return names;
}
